package com.ecut.property_project.service;

import com.ecut.property_project.mapper.ApplicationFormMapper;
import com.ecut.property_project.model.ApplicationForm;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ApplicationFormService{

    @Resource
    private ApplicationFormMapper applicationFormMapper;

    
    public int deleteByPrimaryKey(Integer formId) {
        return applicationFormMapper.deleteByPrimaryKey(formId);
    }

    
    public int insert(ApplicationForm record) {
        return applicationFormMapper.insert(record);
    }

    
    public int insertSelective(ApplicationForm record) {
        return applicationFormMapper.insertSelective(record);
    }

    public int getTenantCount(){
        return applicationFormMapper.getTenantCount();
    }

    public List<ApplicationForm> selectAll(){ return applicationFormMapper.selectAll(); }

    public List<ApplicationForm> selectByPage(Integer page, Integer pageSize){return applicationFormMapper.selectByPage(page,pageSize);}

    public ApplicationForm selectByPrimaryKey(Integer formId) { return applicationFormMapper.selectByPrimaryKey(formId); }

    public List<ApplicationForm>selectByApplicantOrTelOrAddress(String applicant, String tel, String address, Integer page, Integer pageSize){
        return applicationFormMapper.selectByApplicantOrTelOrAddress(applicant,tel,address,page,pageSize);
    }

    public int updateByPrimaryKeySelective(ApplicationForm record) { return applicationFormMapper.updateByPrimaryKeySelective(record); }
    
    public int updateByPrimaryKey(ApplicationForm record) {
        return applicationFormMapper.updateByPrimaryKey(record);
    }

}
